<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:a4j="http://richfaces.org/a4j"
      xmlns:rich="http://richfaces.org/rich"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:ui="http://java.sun.com/jsf/facelets"> 

<h:head>
	<title>Feedbackmodul</title>
	<link rel="stylesheet" type="text/css" href="../css/styles.css"></link>
	<link rel="stylesheet" type="text/css" href="../css/main.css"></link>
	<link rel="stylesheet" type="text/css" href="../css/dragAndDrop.css"></link>
	<script language="JavaScript" src="../js/jquery-1.8.2.js"></script>
	<script language="JavaScript" src="../js/AutoClick.js"></script>
</h:head> 
<h:body>
<f:view>
	<a4j:outputPanel styleClass="headerMenu" id="headerMenu" >
		<h:form id="headermenueForm">
		<table id="header_table" class="HeaderMenuTable">
			<tr>
				<td><a4j:commandLink onbegin="#{rich:component('Loadingpopup')}.show();" oncomplete="#{rich:component('Loadingpopup')}.hide();" id="logout" execute="headermenueForm" render="Messagespopup" action="#{MainSessionBean.logout()}" value="logout"/></td>
			</tr>
		</table>
		</h:form>
	</a4j:outputPanel>
	<div class="mainwrapper">
	<rich:panel id="Banner" styleClass="banner_p">
		<h:form id="bannerform">
			<ui:include src="/xhtml/Header.xhtml"></ui:include>
		</h:form>
	</rich:panel>
	<rich:panel id="leftmenue" styleClass="leftmenue_p">
		<h:form id="leftmenueform">
			<ui:include src="/xhtml/leftmenueComp.xhtml"></ui:include>
			
		</h:form>
	</rich:panel>
	<rich:panel id="main" styleClass="mainmenue_p" >
		<h:form id="mainmenueform">
			<h:form  rendered="#{MainSessionBean.surveyOverview}">
				<ui:include src="/xhtml/UmfrageUebersicht.xhtml" />
			</h:form>
			<h:form  rendered="#{MainSessionBean.accountManagement}">
				<ui:include src="/xhtml/KontoVerwaltenComp.xhtml" />
			</h:form>
			<h:form  rendered="#{MainSessionBean.addQuestion}">
				<ui:include src="/xhtml/FragenHinzufuegenComp.xhtml" />
			</h:form>
			<h:form  rendered="#{MainSessionBean.changeQuestion}">
				<ui:include src="/xhtml/FragenUebersicht.xhtml" />
			</h:form>
			<h:form  rendered="#{MainSessionBean.addQuestionSheet}">
				<ui:include src="/xhtml/AddQuestionSheetComp.xhtml" />
			</h:form>
			<h:form layout="block" rendered="#{MainSessionBean.addSurvey}">
				<ui:include src="/xhtml/AddSurveyComp.xhtml" />
			</h:form>
			<h:form rendered="#{MainSessionBean.changeQuestionSheet}">
				<ui:include src="/xhtml/QuestionSheetOverview.xhtml" />
			</h:form>
			<h:form rendered="#{MainSessionBean.addParticipant}">
				<ui:include src="/xhtml/AddParticipantComp.xhtml" />
			</h:form>
			<h:form rendered="#{MainSessionBean.changeParticipant}">
				<ui:include src="/xhtml/ParticipantOverview.xhtml" />  
			</h:form>
			<h:form rendered="#{MainSessionBean.changeSurvey}">
				<ui:include src="/xhtml/SurveyOverview.xhtml" />  
			</h:form>
			<h:form rendered="#{MainSessionBean.answerSheetOverview}">
				<ui:include src="/xhtml/AnswerView.xhtml" />  
			</h:form>
		</h:form>
	</rich:panel>
	<rich:panel id="footer" styleClass="footer_p">
		<h:form id="footerform">
		
		</h:form>
	</rich:panel>
	</div>

	<ui:include src="MessagesComp.xhtml"></ui:include>

	<ui:include src="LoadingBoxComp.xhtml"/>

	<!-- zum laden von sourcen für spätere komponenten -->
		<h:form >
		<rich:collapsiblePanel style="display:none;"/>
		<rich:select style="display:none;"/>
		<rich:pickList style="display:none;"/>
		<rich:inplaceSelect style="display:none;"/>
		<rich:extendedDataTable id="testtable" style="display:none;"/>
		<rich:dataScroller for="testtable" style="display:none;"/>
		<rich:dataTable style="display:none;"/>
		<rich:inplaceInput style="display:none;"/>
		<rich:dragIndicator style="display:none;"/>
		<rich:dragSource style="display:none;"/>
		<rich:dropTarget style="display:none;"/>
		<rich:inputNumberSlider style="display:none;"/>
		<rich:inputNumberSpinner style="display:none;"/>
		</h:form>
	<!-- ende -->
	</f:view>
</h:body> 
</html>
